<?php
namespace app\admin\common\controller;

use think\Controller;
use think\facade\Session;
use think\facade\Request;
use think\facade\Url;



class base extends Controller
{
    protected function islogin()
    {
        if(!Session::has('username')){
            $this->error('请先登录','admin/index/login'); 
        };
    }

    
}
